<div class="member">

    <div class="grid_6" id="kirim">
        <?php
        $atr = array('id' => 'formID',
            'class' => 'formular');
        echo form_open('admin_pengiriman_retur/update_pengiriman', $atr)
        ?>
        <input type="hidden" name="id_retur" id="id_retur" value="<?php echo $list_data->retur_id ?>"/>
        <p> <span style="width: 150px;">&nbsp; Jenis Pengiriman</span> : <b> <?php echo $list_data->nama_mitra ?> </b> </p> 
        <p> <span style="width: 150px; margin-top: 8px;">&nbsp; Nomer Pengiriman</span> : <b> <input type="text" class="validate[required] text-input"  name="nomer_pengiriman" id="nomer_pengiriman" value="<?php echo $list_data->nomer_pengiriman_retur ?>"/> </b> </p> 
        <p> <span style="width: 150px; margin-top: 8px;">&nbsp; Tanggal Kirim </span> : <b><input type="text" class="validate[required, custom[date]] text-input"  name="tgl_kirim" id="tanggal" value="<?php echo $list_data->tgl_pengiriman_retur ?>"/> </b> </p> <br/>
        <input type="submit" value="Simpan Pengiriman" class="button" style="float: right;"/>
        <?php echo anchor("admin_pengiriman_retur/", "Kembali", "class=\"button\" style=\"float: right; color:#f8f8f8;\"") ?>
        <div class="clear"></div>
        </form>
    </div>

    <div class="clear"></div> <br/>

    <div class="grid_4 alpha omega">
        <h4>ALAMAT PEMESAN</h4>
        <p> <span> Nama Depan </span> : <b> <?php echo $list_data->nama_depan ?> </b> </p> 
        <p> <span> Nama Belakang </span> : <b><?php echo $list_data->nama_belakang ?> </b></p>
        <p> <span> Provinsi </span> : <b><?php echo $list_data->nama_provinsi1 ?> </b></p>
        <p> <span> Kota</span> : <b><?php echo $list_data->nama_kota1 ?> </b></p>
        <p> <span> Alamat</span> : <b><?php echo $list_data->alamat ?> </b></p>
        <p> <span> Kode Pos</span>: <b><?php echo $list_data->kode_pos ?> </b></p>
        <p> <span> Telp</span> : <b><?php echo $list_data->telp ?> </b></p>
    </div>

    <div class="grid_4">
        <h4>ALAMAT PENGIRIMAN</h4>
        <p> <span> Nama Depan </span> : <b> <?php echo $list_data->nama_depan2 ?> </b> </p> 
        <p> <span> Nama Belakang </span> : <b><?php echo $list_data->nama_belakang2 ?> </b></p>
        <p> <span> Provinsi </span> : <b><?php echo $list_data->nama_provinsi2 ?> </b></p>
        <p> <span> Kota</span> : <b><?php echo $list_data->nama_kota2 ?> </b></p>
        <p> <span> Alamat</span> : <b><?php echo $list_data->alamat2 ?> </b></p>
        <p> <span> Kode Pos</span>: <b><?php echo $list_data->kode_pos2 ?> </b></p>
        <p> <span> Telp</span> : <b><?php echo $list_data->telp2 ?> </b></p>
    </div>

    <div class="grid_4 alpha omega">
        <h4>ALAMAT PENGIRIMAN</h4>
        <p> <span> Order ID  </span> : <b> 
                <?php
                $id_transaksi = $list_data->id;
                $id_retur = $list_data->retur_id;
                echo $id_transaksi;
                ?> </b> </p> 
        <p> <span> Tanggal  </span> : <b><?php echo $list_data->date ?> </b></p>
        <p> <span> Pembayaran </span> : <b><?php echo $list_data->jenis_pembayaran ?> </b></p>
        <p> <span> Sub Total </span> : <b><?php echo $list_data->sub_total ?> </b></p>
        <p> <span> Ongkos Kirim </span> : <b><?php echo $list_data->biaya_kirim ?> </b></p>
        <p> <span> Grand Total</span>: <b><?php echo $list_data->grand_total ?> </b></p>
        <?php
        $status = "";
        if ($list_data->status_retur == 0)
            $status = "Proses";
        else if ($list_data->status_retur == 1)
            $status = "Gagal";
        else
            $status = "Sukses";
        ?>
        <p> <span> Order Status</span> : <b><?php echo $status ?> </b></p>
    </div>


    <div class="clear"></div>
    <br/>
    <p>
        <b>Komentar seputar pemesanan anda :</b> <br/>

        <label>

            <textarea cols="70" rows="4"  id="komentar" name="komentar" readonly><?php echo $list_data->komentar ?></textarea>

        </label>


    </p> <br/>


    <table>
        <tr>
            <th style="width: 330px;"> Nama Produk </th>
            <th style="width: 50px; "> Bny</th>
            <th style="width: 300px; vertical-align:middle ;"> Alasan Retur Barang </th>
            <th style="width: 10px; background: #000;"> &nbsp; </th>
        </tr> 
        <?php
        $lib_rupiah = new Format_rupiah();
        $lib_img = new images_thumb();
        $x = 0;
        echo "<input type='hidden' name='id_transaksi' value='$id_transaksi'/>";
        foreach ($list_data_det as $dta_det) {
            $x++;
            $gambar = base_url() . "uploads/" . $dta_det->id_produk . "/" . $lib_img->image($dta_det->image1);
            echo "<tr class='biaya' >";
            echo "<td style='vertical-align: middle; text-align:center;'>
                            <img src='$gambar' width='100' align='left' style='margin-right:5px;'/> 
                            <p style='text-align:left; font-size:14px;'> Kode Produk : <b>$dta_det->id_produk</b> <br/> 
                            Ukuran Produk : <b>$dta_det->size_produk</b> <br/> 
                            Warna Produk : <b>$dta_det->warna</b> <br/> 
                            </p> <br/></td>";
            echo "<td style='vertical-align: middle; text-align:center;'> <p> <b> $dta_det->bny </b> </p> </td>";
            echo "<td style='vertical-align: middle; text-align:center;'> <textarea cols='50' rows='4' readonly>$dta_det->alasan</textarea></td>";
            echo "<td>&nbsp;</td>";

            echo "</tr>";
        }
        ?>

    </table>


    <br/><br/>



</div>


